//Source file: D:\\test\\com\\ce\\pms\\house\\model\\CopyMeterData.java

package com.ce.pms.house.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;
/**
 * 实体名称:抄表数据
 * 关联表:HM_COPY_METER_DATA
 */
@Entity
@Table(name="HM_COPY_METER_DATA")
public class CopyMeterData implements IDomainObject{
    @Id	@GeneratedValue
    @Column(name = "COPY_METER_DATA_ID")
    private Long keyword;

    /**
     * 走表ID
     * 检索策略:lazy=false
     */
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="METER_ID",nullable=true)
    private MeterDomain meter;

    /**
     * 上次读数
     */
    @Column(name="PREREADING")
    private BigDecimal preReading;

    /**
     * 本次读数
     */
    @Column(name="READING")
    private BigDecimal reading;

    /**
     * 抄表时间
     */
    @Column(name="COPY_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date copyTime;

    /**
     * 对应的原始数据ID
     */
    @Column(name="CHARGE_DATA_ID")
    private Long chargeDataId;

    /**
	 * 系统信息
	 */
	@Embedded
	private SysInfo sysInfo;
    /**
     * @roseuid 485B103801D4
     */
    public CopyMeterData() {

    }

    public Long getChargeDataId() {
        return chargeDataId;
    }

    public void setChargeDataId(Long chargeDataId) {
        this.chargeDataId = chargeDataId;
    }

    public Date getCopyTime() {
        return copyTime;
    }

    public void setCopyTime(Date copyTime) {
        this.copyTime = copyTime;
    }

    public Long getKeyword() {
        return keyword;
    }

    public void setKeyword(Long keyword) {
        this.keyword = keyword;
    }

    public MeterDomain getMeter() {
        return meter;
    }

    public void setMeter(MeterDomain meter) {
        this.meter = meter;
    }

    public BigDecimal getPreReading() {
        return preReading;
    }

    public void setPreReading(BigDecimal preReading) {
        this.preReading = preReading;
    }

    public BigDecimal getReading() {
        return reading;
    }

    public void setReading(BigDecimal reading) {
        this.reading = reading;
    }

	/**
	 * @return the sysInfo
	 */
	public SysInfo getSysInfo() {
		return sysInfo;
	}

	/**
	 * @param sysInfo the sysInfo to set
	 */
	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

}
